<!--{include header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="recent-deals">
<!--{if !option_yes('cateteam')}-->
	<div class="dashboard" id="dashboard">
		<ul>${current_teamcategory($group_id)}</ul>
	</div>
<!--{/if}-->
    <div id="content">
        <div class="box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head"><h2>{$category['name']}{$pagetitle}</h2></div>
				<div class="sect">
					<ul class="deals-list" style="font-size: 14px;">
					<!--{loop $teams $index $one}-->
						<li class="${$index++%2?'alt':''} ${$index<=2?'first':''}">
							<p class="time">${date('m.d.Y', $one['begin_time'])}</p>
							<h4>{$city['name']}: <a href="/team.php?id={$one['id']}" title="{$one['title']}">${mb_strimwidth($one['title'],0,86,'...')}</a></h4>
							<div class="pic">
								<div class="{$one['picclass']}"></div>
								<a href="/team.php?id={$one['id']}" title="{$one['title']}"><img alt="{$one['title']}" src="${team_image($one['image'], true)}" width="200" height="121"></a>
							</div>
							<div class="info">
								<p class="total"><strong class="count">{$one['now_number']}</strong><br></br> Phiếu được mua</p>
							</div>
							<div style='float: left; width: 100%;'>
								<div class="price-count">
									<span class="money" style="color: #CC3333; font-size: 20px;padding:30px;">${formatMoney($one['team_price'],0)}</span><br />
								</div>
							Giá gốc <strong class="old"><span class="money"></span>${formatMoney($one['market_price'],0)}</strong> - 
							Giảm <strong class="discount">${formatMoney((100*($one['market_price'] - $one['team_price'])/$one['market_price']),1)}</strong>%</strong><br> 
							Tiết kiệm <strong><span class="money"></span>${formatMoney($one['market_price']-$one['team_price'],0)}</strong>
							</div>
							<!--{if !option_yes('moneysave')}--><div id="info_a">in total save:<strong class="count">{$currency}${moneyit($one['now_number']*($one['market_price']-$one['team_price']))}</strong></div><!--{/if}-->
						</li>
					<!--{/loop}-->
					</ul>
					<div class="clear"></div>
					<div>{$pagestring}</div>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
	<div id="sidebar">
		<!--{//include block_side_bulletin}-->
		<!--{//include block_side_others_seconds}-->
		<!--{include block_side_others}-->
		<!--{include block_side_twitter}-->
	</div>
</div>
    </div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->
